package com.atguigu.spzx.manager.entity;

import java.math.BigDecimal;
import com.atguigu.spzx.common.vo.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 商品sku
 * </p>
 *
 * @author flyduck
 * @since 2023-11-03
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value="ProductSku对象", description="商品sku")
public class ProductSku extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "商品编号")
    private String skuCode;

    private String skuName;

    @ApiModelProperty(value = "商品ID")
    private Long productId;

    @ApiModelProperty(value = "缩略图路径")
    private String thumbImg;

    @ApiModelProperty(value = "售价")
    private BigDecimal salePrice;

    @ApiModelProperty(value = "市场价")
    private BigDecimal marketPrice;

    @ApiModelProperty(value = "成本价")
    private BigDecimal costPrice;

    @ApiModelProperty(value = "库存数")
    private Integer stockNum;

    @ApiModelProperty(value = "销量")
    private Integer saleNum;

    @ApiModelProperty(value = "sku规格信息json")
    private String skuSpec;

    @ApiModelProperty(value = "重量")
    private BigDecimal weight;

    @ApiModelProperty(value = "体积")
    private BigDecimal volume;

    @ApiModelProperty(value = "线上状态：0-初始值，1-上架，-1-自主下架")
    private Integer status;

    @ApiModelProperty(value = "删除标记（0:不可用 1:可用）")
    private Integer isDeleted;


}
